Repository navigation
feat(os-update): device lists of a policy and Add All Devices at save CU-17tkuw67mjh - #3331
Conversation
…d security-only settings of the policy CU-17tkuw67mjh The product dropped the Advanced block of the OS update policy form. The three settings leave the stored document, the input, the response, the validation and the GraphQL schema, with OsUpdateInstallWindow and the DayOfWeek enum that only they used. Documents stored with these fields are still read: nothing maps, indexes or migrates them. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EnBSFTsNdA8c4yRH3Lehi4
… CU-17tkuw67mjh OsUpdatePolicy gets deviceCount, assignedDevices and assignedDeviceFilters; the assignable devices take the devices filter and get their filter options (osUpdatePolicyAssignableDeviceFilters). OsUpdatePolicyInput.allAssignableDevices adds every assignable device that matches a filter and search to machineIds at save; it is resolved by the backend and not stored. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EnBSFTsNdA8c4yRH3Lehi4
🦩 Flamingo Code Review5 findings: 🔴 1 action required · 🟠 0 recommended · 🔵 4 informational Advisory: findings do not block the merge. Rules cited:
🔴 Action required (1)
🔵 Informational (4)
✅ What this change does well
Inline comments: 5 new 4 possible problems checked and ruled out
🤖 Prompt for AI agents: fix every findingNext: commit a suggestion, or hand a comment's prompt to your coding agent. React 👍 on a finding that helped and 👎 on one that is wrong: the reviewer learns from both. Review again. New commits are not reviewed until you ask:
Or comment Updated 2026-12-03 15:35 UTC · reviewed from Semen Lisak's machine |
🦩 Flamingo Code Review / security✅ No findings on the current head. Advisory: findings do not block the merge.
Review again. New commits are not reviewed until you ask:
Or comment Updated 2026-12-03 15:39 UTC · reviewed from Semen Lisak's machine |
…device filter, review notes CU-17tkuw67mjh allAssignableDevices moves from OsUpdatePolicyInput to an argument of createOsUpdatePolicy and updateOsUpdatePolicy; its filter goes through GraphQLDeviceMapper, so it gives the same set and the same refusal as the assignable list. The validator takes one OsUpdatePolicyValidationContext; Optional.get, the || guard and nested calls are cleaned up. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EnBSFTsNdA8c4yRH3Lehi4
The base branch was changed.
…-devices # Conflicts: # openframe-api-service-core/src/main/resources/schema/os-update-policy.graphqls # openframe-api-service-core/src/test/java/com/openframe/api/integration/osupdate/OsUpdatePolicySettingsIT.java
What
The device picker of the OS auto-update policy form (tabs Available Devices / Selected Devices, search, filter funnels, Add All Devices) gets the API it needs. The policy is still saved as a whole with
machineIds; the form keeps the selection itself.Stacked on #3330 (the removal of the Advanced settings): the base of this PR is that branch.
Read
OsUpdatePolicy.deviceCount: number of devices the policy names (machineIds). The policies list still costs one query.OsUpdatePolicy.assignedDevices(filter, search, sort, first, after, last, before): DeviceConnection!: the devices the policy names, filtered, searched, sorted and paged as the devices query. The Selected Devices tab.OsUpdatePolicy.assignedDeviceFilters(filter, search): DeviceFilters!: the filter options of that list with their counts.osUpdatePolicyAssignableDevicesgainsfilter: DeviceFilterInput(the Customer funnel and the others of the devices table).osUpdatePolicyAssignableDeviceFilters(filter, search): DeviceFilters!: the filter options of the Available Devices tab.The set of assignable devices is unchanged and still decided in one place,
OsUpdatePolicyDeviceChecker: the device reported its OS, Windows, manageable, in no other policy. The filter and the search only narrow it.Add All Devices
A new optional argument of both save mutations, as on
addAllDevicesToSoftwareBundle:At save the backend finds every assignable device that matches the filter and the search and stores it in the policy together with
machineIds. The argument is not stored. Null = onlymachineIds.GraphQLDeviceMapper, as the filter ofosUpdatePolicyAssignableDevicesdoes: the same filter gives the same devices and the same refusal (mdmStates,diskEncryptionStates).machineIds+ the found devices, each once.OS_UPDATE_POLICY_CONFLICTnaming that policy and up to 10 devices.Code
DeviceService.queryDevicesAmong,getDeviceFiltersAmong,GraphQLDeviceMapper.DeviceService.findDeviceIdsAmong(ids of the devices among a given set that match a filter and a search),OsUpdatePolicyService.getAssignableDeviceFilters, the wire classOsUpdatePolicyAllAssignableDevicesInput(api-service-core) and its service-sideOsUpdatePolicyAllAssignableDevicesCriteria(api-lib), the same split asDeviceFilterInput/DeviceFilterCriteria.OsUpdatePolicyValidator.validatetakes oneOsUpdatePolicyValidationContextinstead of a row of collections.machineIdsis stored once.Schema
Additive only. The tenant federation snapshot changes with the next lib bump.
Open
Tests
OsUpdatePolicyServiceTest,OsUpdatePolicyValidatorTest,OsUpdatePolicyResponseMapperTest,OsUpdatePolicyDataFetcherTest,OsUpdatePolicyAllAssignableDevicesInputBindingTest,GraphQLDeviceMapperTest,DeviceServiceTest,OsUpdateSchemaContractTest; the full unit run of api-lib and api-service-core is green.OsUpdatePolicySettingsIThas new cases for the lists and Add All; they compile and were not run.Change-Set: feat-os-update-policy-devices
Depends-On: #3330
🤖 Generated with Claude Code
https://claude.ai/code/session_01EnBSFTsNdA8c4yRH3Lehi4
Change set
flamingo-stack/feat-os-update-policy-devices: these pull requests are one change, reviewed together.Linked work
Linked by the
Depends-On/Change-Setlines in these descriptions; this block is maintained by the hub.